<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="//cdn.jsdelivr.net/npm/xgplayer@2.9.6/browser/index.js" type="text/javascript"></script>
</head>
<body style="background-color:#000;overflow: hidden">
    <div id="video_block"></div>
<script>
    let win_width = window.innerWidth;
    let win_height = window.innerHeight;
    let player = new Player({
        id: 'video_block',
        url: '{$src}',
        width: win_width+'px',
        height: win_height+'px',
        autoplay: true,
    });
</script>
</body>
</html>